<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>{:lang('MemberCenter')}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link rel="stylesheet" href="__STATIC__/libs/layui/css/layui.css">
    <link rel="stylesheet" href="__ADDONS__/member/css/global.css">
    <link rel="stylesheet" href="__STATIC__/common/font/iconfont.css">
    <link rel="stylesheet" href="__ADDONS__/cms/css/member.css">
    <script src="__STATIC__/libs/layui/layui.js"></script>
    <script src="__STATIC__/libs/jquery/jquery.min.js"></script>
    <script type="text/javascript">
        //全局变量
        var GV = {
                'site':{$site|raw|json_encode},
            'image_upload_url': '{$image_upload_url ? $image_upload_url : url("member/ajax/upload", ["dir" => "images"])}',
            'file_upload_url': '{$file_upload_url ? $file_upload_url : url("member/ajax/upload", ["dir" => "files"])}',
            'profile_upload_url': '{$profile_upload_url ? $profile_upload_url : url("member/index/profile")}',
            'attachment_select_url': '{$attachment_select_url ? $attachment_select_url : url("member/attachments/select")}',
        };
    </script>
</head>

<body class="body">
<div class="fly-header layui-bg-black">
    <div class="layui-container">
        <a class="fly-logo" href="{:url('index')}">
            <img src="{:getSite('logo')}" alt="{:getSite('name')}">
        </a>
        <ul class="layui-nav fly-nav layui-hide-xs">
            <li class="layui-nav-item layui-this">
                <a href="{:url('/')}"><i class="iconfont icon-homepage"></i>{:lang('home')}</a>
            </li>
        </ul>
        <ul class="layui-nav fly-nav-user">
            <!-- 登入后的状态 -->
            <li class="layui-nav-item">
                <a class="fly-nav-avatar" href="javascript:;">
                    <img src="{$userinfo.avatar}">
                    <cite class="layui-hide-xs">{$userinfo.username}</cite>
                    {if $userinfo.vip}
                    <i class="iconfont icon-vip1 layui-hide-xs" title="VIP会员"></i>
                    {/if}
                    <!-- <i class="layui-badge fly-badge-vip layui-hide-xs">{$userinfo.groupname}</i>-->
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:url('member/index/index')}"><i class="layui-icon">&#xe612;</i>{:lang('MemberCenter')}</a></dd>
                    <dd><a href="{:url('member/index/profile')}"><i class="layui-icon">&#xe620;</i>{:lang('BasicSettings')}</a></dd>
                    <hr style="margin: 5px 0;">
                    <dd><a href="{:url('member/index/logout')}" style="text-align: center;">{:lang('Logout')}</a></dd>
                </dl>
            </li>
        </ul>
    </div>
</div>
<div class="layui-container fly-marginTop fly-user-main">
    <div class="layui-nav layui-nav-tree layui-inline layui-panel" lay-filter="user">
        <ul class="layui-menu" id="docDemoMenu1">
            <li {if $Request.action=='index' && $Request.controller=='Index' }class="layui-menu-item-checked"{/if}>
            <div class="layui-menu-body-title">
                <a href="{:url('member/index/index')}"><i class="iconfont icon-user-line"></i>&nbsp;{:lang('MemberCenter')}</a>
            </div>
            </li>
            <li class="layui-menu-item-divider"></li>
            <li {eq name='Request.action' value='profile' }class="layui-menu-item-checked"{/eq}>
            <div class="layui-menu-body-title">
                <a href="{:url('member/index/profile')}"><i class="iconfont icon-setup"></i>&nbsp;{:lang('BasicSettings')}</a>
            </div>
            </li>
            <li class="layui-menu-item-divider"></li>
            <li {eq name='Request.action' value='upgrade' }class="layui-menu-item-checked"{/eq}>
            <div class="layui-menu-body-title">
                <a href="{:url('member/index/upgrade')}"><i class="iconfont icon-vip-line"></i>&nbsp;{:lang('SelfUpgrade')}</a>
            </div>
            </li>
            <li class="layui-menu-item-divider"></li>
            {:hook('user_sidenav_after')}
        </ul>
    </div>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <div class="site-mobile-shade"></div>
    <div class="fly-panel fly-panel-user" pad20 style="padding-top:20px;">
        {block name="main"}主内容{/block}
    </div>
</div>
<div class="fly-footer">
    <p>{:lang('copyright')}</p>
</div>
{include file="../member/public/layui" /}
{block name="js"}{/block}
</body>
</html>